<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    <title>角色列表</title>
  </head>
  <body>
    <form action="{$smarty.const.__CONTROLLER__}/delete" method="post">
    <div class="mainbox">
          <div class="tablebox">            
            <table class="table" >
              <tr class="one">
                <td>ID</td>
                <td>角色名</td>
                <td>操作</td>
              </tr>
              <tr>
                  <td colspan="3"><strong>系统角色</strong></td>
              </tr>
              {section name=n loop=$list}
              <tr>
                  <td>{$list[n].role_id}</td>
                  <td>{$list[n].role_name}</td>
                  <td>
                     <a href="#" onclick="if(confirm('确定删除？'))location.href='{$smarty.const.__CONTROLLER__}/delete/id/{$list[n].role_id}';"><img src="/Show/Admin/Public/image/del.jpg" class="pit" title="删除"></a>
                     <a href="#" onclick="location.href='{$smarty.const.__CONTROLLER__}/xiugai/id/{$list[n].role_id}'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit" title="编辑"></a>
                     <a href="{$smarty.const.__CONTROLLER__}/distribute/role_id/{$list[n].role_id}">分配权限</a>
                  </td>
              </tr>
              {/section}
              <tr>
                  <td colspan="3"><strong>普通角色</strong></td>
              </tr>
              {section name=q loop=$qlist}
              <tr>
                  <td>{$qlist[q].role_id}</td>
                  <td>{$qlist[q].role_name}</td>
                  <td>
                     <a href="#" onclick="if(confirm('确定删除？'))location.href='{$smarty.const.__CONTROLLER__}/delete/id/{$qlist[q].role_id}';"><img src="/Show/Admin/Public/image/del.jpg" class="pit" title="删除"></a>
                     <a href="#" onclick="location.href='{$smarty.const.__CONTROLLER__}/xiugai/id/{$qlist[q].role_id}'" ><img src="/Show/Admin/Public/image/edi.jpg" class="pit" title="编辑"></a>
                     <a href="{$smarty.const.__CONTROLLER__}/distribute/role_id/{$qlist[q].role_id}">分配权限</a>
                  </td>
              </tr>
              {/section}
            </table>          
          </div>
    </div>
    </form>
  </body>
</html>